/***********************init.html***************************/
function queryStudenSign_est(page){
	var parm = $('#queryStudentSign').serialize() + sys_get_page(page);
	var url = create_url('studentSign-query');
	sys_query_parm = parm;
	sys_loading();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_loading_close();
			$('#resultList').html(result);
		}
	});
}
/**
 * 学生报名
 */
function studentSigns_sign(code,name){
	var parm = {"code" : code};
	var url = create_url('studentSign-save');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_submiting_close();
			if ('success' == result) {
				sys_msg('操作成功');
				queryStudenSign_est();
			} else {
				sys_warning('操作失败', '操作失败，请刷新页面再次尝试，如果问题依然存在，请联系管理员!');
			}
		}
	});
}
function studentSigns_est(code, title) {
	$.Zebra_Dialog('确认要报名吗？',{
	'type': 'question',
	'title': '警告' ,
	'buttons':[
       {caption:'是',callback:function() {
    	   studentSigns_sign(code,name);
		}},
       {caption:'否',callback:function(){}
	}]
	});
}
/******************************list.html************************************/
/**
 * 受训报告
 */
function openTrainedReport(clc){
	var url = create_url("trainedReport-reportStudent");
	var parm = {"clc" : clc};
	$.colorbox({overlayClose:false, href:url, data:parm, close:'[关闭]', width:'850px', height:'600px', open:true});
}